<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
// 网站地址
String netPath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
%>
<div>
<input type="hidden" name="pageSum" value="${pageSum}" id="pageSum"/>
<table width="100%" border="0" height="100%" cellpadding="0" cellspacing="0" class="yhgltable_1">
   <thead>
     <tr>
       <th>栏目ID</th>
       <th>栏目名字</th>
       <th>父栏目</th>
       <th>顺序</th>
	   <th>修改</th>
     </tr>
   </thead>
   <c:forEach items="${lstColumns}" var="columnInfo" varStatus="stats">
        <c:if test="${stats.index%2==0}">
		  <tr>
	    </c:if>
		<c:if test="${stats.index%2==1}">
				<tr class="gray">
		</c:if>
           <td width="7%"><p>
               &nbsp;&nbsp;<input type="checkbox" name="group_box" value="${columnInfo.id}">
               ${columnInfo.id}</p></td>
           <!-- cname -->
           <td width="20%" style="padding-left: 200px;text-align:left;"><a href="<%=netPath%>/channel/${columnInfo.id}.html" target="_blank">${columnInfo.name}</a></td>
           <td width="10%"><a href="<%=netPath%>/channel/${lstParentColumns[stats.index].id}.html" target="_blank">${lstParentColumns[stats.index].name}</td>
           <td width="12%">
           		<img alt="位置上升" src="<%=basePath%>images/arrow_up.png" class="ifTop" style="width:20px;" title="位置上升" onclick="changePosStat('${columnInfo.id}','${columnInfo.parentId}',0)"/>
           		<img alt="位置下降" src="<%=basePath%>images/arrow_down.png" class="ifTop" title="位置下降" style="width:20px;" onclick="changePosStat('${columnInfo.id}','${columnInfo.parentId}',1)"/>
           		<input type="text" id="iftop_${columnInfo.id}" value="${columnInfo.sortWay}" readonly="readonly" style="width:40px;"/>
           </td>
           <td width="8%"><div class="btn1" style="margin-left:50px;"><a href="javascript:void(0)" onclick="toUpdate(${columnInfo.id})"><img src="<%=basePath%>images/xg.gif" />修改</a></div></td>
        </tr>
   </c:forEach>  
</table>
</div>
<style>
	.ifTop {
		cursor:pointer;
	}
</style>